<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/admin/include/images/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/admin/cms/column/columnJs.js"></script>
<title>栏目列表</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 12px}
.STYLE3 {color: #707070; font-size: 12px; }
.STYLE5 {color: #0a6e0c; font-size: 12px; }
body {
	margin-top: 0px;
	margin-bottom: 0px;
}
.STYLE7 {font-size: 12}
-->
</style>
</head>

<body>
<c:set value="栏目管理" var="position_column" scope="request"/>
<c:set value="栏目列表" var="position_button" scope="request"/>
<%@include file="/admin/right_position.jsp" %>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td style="padding-right:10px;"><div align="right">
          <table border="0" align="right" cellpadding="0" cellspacing="0">
            <tr>
              <td width="60"><table width="87%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center">
                        <input type="checkbox" name="checkbox62" value="checkbox" />
                    </div></td>
                    <td class="STYLE1"><div align="center">全选</div></td>
                  </tr>
              </table></td>
              <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="/admin/include/images/001.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center" onclick="window.location.href='/admin/cms/column/columnAdd.jsp';">新增</div></td>
                  </tr>
              </table></td>
              <td width="60"><table width="90%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="/admin/include/images/114.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center">修改</div></td>
                  </tr>
              </table></td>
              <td width="52"><table width="88%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="STYLE1"><div align="center"><img src="/admin/include/images/083.gif" width="14" height="14" /></div></td>
                    <td class="STYLE1"><div align="center">删除</div></td>
                  </tr>
              </table></td>
            </tr>
          </table>
        </div></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#c9c9c9"> 
      <tr>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">序号</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">栏目名称</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">英文标识</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">栏目类型</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">栏目网址</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">排序</span></strong></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><strong><span class="STYLE1">明细</span></strong></div></td>
      </tr>
<c:forEach items="${pageResult.resultList}" var="data"	varStatus="lineInfo">
      <tr>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3">${lineInfo.count}</span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3"><c:out value="${data.columnName}"/></span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3"><c:out value="${data.columnEnglish}"/></span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3"><c:out value="${data.columnType}"/></span></div></td>
        <td height="22" bgcolor="#FFFFFF"><div align="center"><span class="STYLE3"><c:out value="${data.columnUrl}"/></span></div></td>      
        <td height="22" bgcolor="#FFFFFF">
        	<div align="center">
        		<span class="STYLE3">
					<c:if test="${pageResult.currentPage > 1 || lineInfo.count > 1}">
						<img src="/admin/include/images/up.gif" style="cursor: pointer" title="向上排序" onclick="upColumn('${data.columnParent}','${data.columnId}')" />
					</c:if>
					<c:if test="${pageResult.currentPage == 1 && lineInfo.count == 1}">
						<img src="/admin/include/images/up_off.gif" />
					</c:if>
					&nbsp;&nbsp;
					<c:if test="${pageResult.currentPage < pageResult.totalPages || (pageResult.firstRow + lineInfo.count - 1) < pageResult.totalRows}">
						<img src="/admin/include/images/down.gif" style="cursor: pointer" title="向下排序" onclick="downColumn('${data.columnParent}','${data.columnId}')" />
					</c:if>
					<c:if test="${pageResult.currentPage == pageResult.totalPages && (pageResult.firstRow + lineInfo.count - 1) == pageResult.totalRows}">
						<img src="/admin/include/images/down_off.gif" />
					</c:if>
        		</span>
        	</div>
        </td>
        <td height="22" bgcolor="#FFFFFF">
	        <div align="center" class="STYLE5">明细   修改  删除</div>
		</td>
      </tr>
</c:forEach>

    </table></td>
  </tr>
  <tr>
    <td height="35"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100%" valign="top" class="STYLE1">
        	<div align="right">
				<jsp:include page="/admin/include/page.jsp" />
        	</div>
        </td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>